#ifndef BACKENDSERVER_H
#define BACKENDSERVER_H

#include <QObject>
#include <QtNetwork>
#include <QtSql>

class BackendServer : public QTcpServer
{
Q_OBJECT
public:
    BackendServer(QObject *parent = 0);
    bool startListening(int port);
protected:
    void incomingConnection(int socket);
private:
   QTcpServer * server;
   QTcpSocket * connection;
   QSqlDatabase db;
};

#endif // BACKENDSERVER_H
